public class AuthenticatorsProvider implements IAuthenticatorsProvider
{
    IAuthenticator[] authenticators;

    public AuthenticatorsProvider(IAuthenticator[] authenticators)
    {
        this.authenticators = authenticators;
    }

    public IAuthenticator getAuthenticator(String authenticatorName)
    {
        for(IAuthenticator authenticator : authenticators)
            if(authenticator.getName().equals(authenticatorName))
                return authenticator;
        return null;
    }
}
